package com.escope.casemanager.config;

import com.escope.casemanager.listener.WebInitListener;
import org.springframework.boot.web.servlet.ServletListenerRegistrationBean;
import org.springframework.context.annotation.Bean;

/**
 * Administrator
 * 2024/3/15
 */
public class ListenerConfig {
    /**
     * 添加系统启动监听 .
     */
    @Bean
    public ServletListenerRegistrationBean getServletListenerBean() {
        return new ServletListenerRegistrationBean(new WebInitListener());
    }
}
